﻿/**
* File: TpmdeptDbModel.cs
* Author: 汪杰
* Create Time:2021-06-07 22:35:55
* Email:15200358008@139.com
* 代码由TMCodeGenerator自动生成
**/
using SqlSugar;
using System;

namespace JSLCloud.DBModel
{
    /// <summary>
    /// t_pm_dept Db Model
    /// </summary>
    [SugarTable("t_pm_dept")]
    public class TpmdeptDbModel
    {
        /// <summary>
        /// 主键自增长
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnName = "ID", IsIdentity = true)]
        public int ID { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        [SugarColumn(ColumnName = "DeptName")]
        public string DeptName { get; set; }

        /// <summary>
        /// 部门状态 
        /// </summary>
        [SugarColumn(ColumnName = "Status")]
        public bool Status { get; set; }

        /// <summary>
        /// 部门说明
        /// </summary>
        [SugarColumn(ColumnName = "DeptDesc")]
        public string DeptDesc { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "CreateTime")]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "CreateId")]
        public int CreateId { get; set; }
        /// <summary>
        /// 上级部门
        /// </summary>
        [SugarColumn(ColumnName = "PID")]
        public int Pid { get; set; }
    }
}
